<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title><?php echo (L("web_title")); ?></title>
<link rel="stylesheet" type="text/css" href="/Static/Css/reset.css" />
<link rel="stylesheet" type="text/css" href="/Static/Css/zh-cn-system.css" />
<link rel="stylesheet" rev="stylesheet" type="text/css" media="print" href="/Static/Css/print.css" />
<script type="text/javascript" src="/Public/js/jquery.min.js"></script>
<script type="text/javascript" src="/Public/js/main.js"></script>
<script type="text/javascript" src="/Public/artDialog/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="/Public/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript">
$(function(){
	$.get("/index.php/index/getBalance/",function(data){
		$('#qr').html(data.data.qr);
		$('#code').html(data.data.code);
		$('#sms').html(data.data.sms);
	},'json')

	//$(window.parent.document).find("#today").show();
})
</script>
</head>
<style>
.red{padding:0 3px;}
.content{}
.rank-list{ height: 26px; line-height: 26px;}

</style>
<body>
<div id="main_frameid" class="pad-10 display" style="_margin-right:-12px;_width:98.9%;">
    <div class="index-left"  style="width:49%; float:left">

    	<div class="col-2 lf mr10" style="width:100%; margin-top:10px;">
            <h6> 账户信息</h6>
            <div class="content">
            您好，<?php echo ($userInfo["username"]); ?><br />
            <div class="bk20 hr"><hr /></div>
        	   所属角色：<?php echo (get_role_name($userInfo["role_id"])); ?><br />
            <div class="bk20 hr"><hr /></div>
       	    手机： <?php echo ($userInfo["phone"]); ?><br />
            <div class="bk20 hr"><hr /></div>
            邮箱： <?php echo ($userInfo["email"]); ?><br />
            <div class="bk20 hr"><hr /></div>
            上次登陆IP： <?php echo ($userInfo["last_login_ip"]); ?><br />
            <div class="bk20 hr"><hr /></div>
            上次登陆时间：<?php echo (date('Y-m-d H:i:s',$userInfo["last_login_time"])); ?><br />
            <div class="bk20 hr"><hr /></div>
            登录次数： <?php echo ($userInfo["login_count"]); ?><br />
            </div>
        </div>
    </div>
    <div class="index-right" style="width:49%;  float:right">



        <div class="col-2 lf mr10" style="width:100%; ">
            <h6>昨天排行</h6>
            <div class="content">
              <?php if(is_array($ranking_yesterday)): $i = 0; $__LIST__ = $ranking_yesterday;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="rank-list">
                    <span><img src="<?php echo ($vo["avatar"]); ?>" height="26" width="26"></span>
                    <span><?php echo ($vo["username"]); ?></span>
                    <span>电话（<?php echo ($vo["phone_num"]); ?>）</span>
                </div>
                <?php if(count($__LIST__) != $i): ?><div class="bk20 hr"></div><?php endif; endforeach; endif; else: echo "" ;endif; ?>
            </div>
        </div>
        <div class="col-2 lf mr10" style="width:100%; margin-top:10px;">
            <h6>今日排行</h6>
            <div class="content">

              <?php if(is_array($ranking_today)): $i = 0; $__LIST__ = $ranking_today;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="rank-list">
                    <span><img src="<?php echo ($vo["avatar"]); ?>" height="26" width="26"></span>
                    <span><?php echo ($vo["username"]); ?></span>
                    <span>电话（<?php echo ($vo["phone_num"]); ?>）</span>
                </div>
                <?php if(count($__LIST__) != $i): ?><div class="bk20 hr"></div><?php endif; endforeach; endif; else: echo "" ;endif; ?>

            </div>
        </div>
    </div>
    <div class="bk10"></div>
</div>
</body>
</html>